package entities;

import java.io.Serializable;

/**
 * Objecto que representa um alcance de dados de uma
 * base de dados
 * 
 * @author Leonardo Lino Nº45340
 * @author Diogo Pires Nº40351
 */
public class Range implements Serializable{

	private int responsable;
	private int min;
	private int max;
	private int size;
	
	public Range(int min, int max, int responsable){
		this.min = min;
		this.max = max;
		this.responsable = responsable;
		size = max - min + 1;
	}

	public int getMin() {
		return min;
	}

	public void setMin(int min) {
		this.min = min;
	}

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getResponsable() {
		return responsable;
	}

	public void setResponsable(int responsable) {
		this.responsable = responsable;
	}
	
	
}
